package com.example.bookManagement.Model;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private int total;
    private List<T> records;
    private PageRequest pageRequest;
    private int status;
    private String errorMessage;
    public PageResult(Integer count, List<T> books, PageRequest pageRequest) {
        this.total = count;
        this.records = books;
        this.pageRequest = pageRequest;
    }
}
